﻿#pragma once
#include "afxsock.h"
class CClientSocket :
	public CSocket
{
public:
	CClientSocket();
	virtual ~CClientSocket();
	//接收服务器发来的消息
    virtual	void OnReceive(int nErrorCode);
	//通过发送多字节流来连接服务器
	bool SendMSG(LPSTR lpBuff, int nlen);
	//重写socket的回调
	void OnClose(int nErrorCode);
	void test();
};

